package com.zsrt.javaweb.ch01;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Order(2) 数字越大的越晚执行
 * @author scott
 *
 */
@Order(2)
@Component
@Aspect
public class LoggingAspect {
	@Before("execution(* com.zsrt.javaweb.ch01.*.*(..))")
	public void invokeBeforeMethod(JoinPoint jp){
		System.out.println("[日志-->前置通知]在目标方法执行之前执行的代码...");
	}
	

}
